package io.github.kimmking.kkconfig.server.model;

import lombok.Data;

/**
 * Description for this class.
 *
 * @Author : kimmking(kimmking@apache.org)
 * @create 2024/1/25 00:56
 */
@Data
public class ChangedEvent<T> {

    T data;

    long last;

    public static <T> ChangedEvent<T> with(T data) {
        ChangedEvent<T> changedEvent = new ChangedEvent<>();
        changedEvent.setData(data);
        return changedEvent;
    }

}
